package com.lmt.feign;

import com.lmt.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Date 2018/06/28
 *
 * @author MT-Lin
 */
@FeignClient(name = "provider")
public interface ProviderFeignClient {

    @RequestMapping(value = "/findUserById", method = RequestMethod.GET)
    User findUserById(@RequestParam(name = "id") String id);
}
